//
//  YWKButtonImgTop.h
//  WDDoctor
//
//  Created by  WangDan on 16/3/18.
//  Copyright © 2016年 iCareTech. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface TCButtonImgTop : UIButton

/** 按钮上部图片的尺寸 */
@property (nonatomic)           CGSize      imgSize;
/** 
 1.默认NO
 2.设置为YES，secondLineString空字符串时，secondLine站位，显示空白
 */
@property (nonatomic)           BOOL        isRequiredShowSecondLine;

/** 姓名，title的第一行 */
@property (nonatomic, copy)     NSString    *firstLineString;
@property (nonatomic, strong)   UIColor     *firstLineColor;
@property (nonatomic)           CGFloat     firstFontSize;

/** 职称，title的第二行 */
@property (nonatomic, copy)     NSString    *secondLineString;
@property (nonatomic, strong)   UIColor     *secondLineColor;
@property (nonatomic)           CGFloat     secondFontSize;

/** Title的top距Image的bottom距离 */
@property (nonatomic)           CGFloat     firstLineTopOffset;
/** 副Title距Title地距离 */
@property (nonatomic)           CGFloat     secondLineOffset;

@property (nonatomic)           NSString    *buttonID;

/**
 *  圆形图片
 *
 *  @param frame frame
 *
 *  @return UIButton
 */
- (instancetype)initRoundImageWithFrame:(CGRect)frame;

/**
 *  设置按钮标题，titleLabel.frame可自适应。建议使用该方法设置Title
 *
 *  @param state UIControlState
 */
- (void)setAdjustTitleforState:(UIControlState)state;

/**
 *  根据title和image自适应button的frame
 *
 *  @return CGRect
 */
- (CGRect)adjustFrame;

@end
